package com.entrogy.bean;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @ClassName MeetingApplyRecordEntity
 * @Description
 * @Author luoxingjiang
 * @Date 2019/8/6 0006 下午 4:30
 * @Version 1.0
 **/
@SuppressWarnings("serial")
@AllArgsConstructor
@NoArgsConstructor
@Data
@Accessors(chain = true)
@ApiModel(value="会议室申请记录",description="会议室申请记录类" )
public class MeetingApplyRecordEntity {

    private Integer id;

    @ApiModelProperty(value = "会议室名称", required = true)
    private String meetingRoomName;

    @ApiModelProperty(value = "会议室id", required = true)
    private Integer meetingRoomId;

    //审核状态，1为待审核，2为审核通过，3审核不通过
    private Integer audited;

    //审核意见
    private String opinion;

    @ApiModelProperty(value = "会议主题", required = true)
    private String meetingTitle;

    @ApiModelProperty(value = "会议日期", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date applyDate;

    @ApiModelProperty(value = "会议开始时间", required = true)
    private String startTime;

    @ApiModelProperty(value = "会议结束时间", required = true)
    private String endTime;

    @ApiModelProperty(value = "参与开会的人员列表，包含属性id，以及姓名", required = true)
    List<JSONObject> meetingPersonList;

    @ApiModelProperty(value = "申请人id", required = true)
    private String applyUserId;

    //申请人姓名
    private String applyUsername;

    //会议室管理员id
    private String managerUserId;

    //会议室管理员姓名
    private String managerUsername;

    //会议室管理员照片
    private String managerUserPhoto;

    //会议室申请时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


}
